package com.hrt.bean;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/***********************************************************************
 * Module: SnCodeSequence.java Author: Administrator Purpose: Defines the Class
 * 条形码序列表，记录已经生成的条形码
 * SnCodeSequence
 *************************************************************************/
@Entity
@Table(name = "SN_CODES")
public class SnCodeSequence implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2774760574858153153L;

	/**
	 * 条形码ID
	 * 
	 * @pdOid 965f22ef-9fcb-4f63-84c0-79ab72c00c2b
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "SN_ID", length = 500)
	private Long Id;
	/**
	 * 条形码
	 * 
	 * @pdOid 4b788879-4cb9-469d-8279-a746e0f61a74
	 */
	@Column(name = "SN_CODE", length = 20,nullable=false)
	private java.lang.String snCode;
	/**
	 * 状态 0未使用1已使用
	 * 
	 * @pdOid b3aeea4f-c269-483d-bfb6-652cbc7b39da
	 */
	@Column(name = "STATUS", length = 1,nullable=false)
	private Integer status=0;
	/**
	 * 库单ID
	 * 
	 * @pdOid b5898044-dea1-4b89-adac-d1cf126ae8e5
	 */
	@Column(name = "STOCK_ID")
	private Long stockId;
	/**
	 * 入库单详情ID
	 * 
	 * @pdOid 7188587e-ca2b-4b12-a78a-e92c8d96ca92
	 */
	@Column(name = "USE_DE_ID",nullable=true)
	private Long useStkDeId;
	
	@Column(name = "USE_STOCK_ID",nullable=true)
	private Long useStockId;
	/**
	 * 入库单详情ID
	 * 
	 * @pdOid 7188587e-ca2b-4b12-a78a-e92c8d96ca92
	 */
	@Column(name = "STO_DE_ID")
	private Long stkDeId;
	/**
	 * 创建时间
	 * 
	 * @pdOid ac75b90f-e724-4a1a-83cd-c0d0bf6f2218
	 */
	@Column(name = "CREATE_TIME",nullable=false)
	private Timestamp createTime;
	/**
	 * 被使用时间
	 * 
	 * @pdOid d6acf40e-a2e3-4e8a-9f61-698cee481dc1
	 */
	@Column(name= "USE_TIME")
	private Timestamp useTime;
	
	/**
	 * 使用对象：1产品 2礼品
	 */
	@Column(name = "RE_TYPE")
	private Integer reType;

	/**
	 * 删除标记
	 */
	@Column(name = "ISDELETE", nullable = false)
	private Integer isdelete = 0;

	/** @pdOid ab04792f-8390-40d0-83a7-f7e1ab988478 */
	

	/** @pdOid cbf332c0-f70c-4981-b4ba-732b1dd35052 */
	public java.lang.String getSnCode() {
		return snCode;
	}

	public Long getId() {
		return Id;
	}

	public void setId(Long id) {
		Id = id;
	}

	/**
	 * @param newSnCode
	 * @pdOid b2782989-687e-431c-acf2-e94e3228904b
	 */
	public void setSnCode(java.lang.String newSnCode) {
		snCode = newSnCode;
	}

	/** @pdOid 83fbad76-03bd-46f6-bc59-b95ebcabd7d7 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * @param newStatus
	 * @pdOid 748646e6-cfa6-46e4-95b6-9a3d9444ae7b
	 */
	public void setStatus(Integer newStatus) {
		status = newStatus;
	}

	/** @pdOid a018453e-0086-4ccc-9879-aa16b78e7a3b */
	public Long getStockId() {
		return stockId;
	}

	/**
	 * @param newStockId
	 * @pdOid f7ceaffc-fd68-4ff5-b863-85707daba433
	 */
	public void setStockId(Long newStockId) {
		stockId = newStockId;
	}

	/** @pdOid 94737e8b-dc32-456d-8637-1262a83c51c3 */
	public Long getStkDeId() {
		return stkDeId;
	}

	/**
	 * @param newStkDeId
	 * @pdOid fb280754-525f-493f-a9c1-8c095c6f88de
	 */
	public void setStkDeId(Long newStkDeId) {
		stkDeId = newStkDeId;
	}

	/** @pdOid 4c966758-fafb-4bb9-a986-3176f2ddb969 */
	public Timestamp getCreateTime() {
		return createTime;
	}

	/**
	 * @param newCreateTime
	 * @pdOid 1c171e17-2149-494f-a48f-9acdcb54ae4b
	 */
	public void setCreateTime(Timestamp newCreateTime) {
		createTime = newCreateTime;
	}

	/** @pdOid 2cf3526e-f0d5-42bc-bca5-76e3973e576f */
	public Timestamp getUseTime() {
		return useTime;
	}

	/**
	 * @param newUseTime
	 * @pdOid 8fb7b311-e3e8-4bc4-9cd1-bd9b5544359f
	 */
	public void setUseTime(Timestamp newUseTime) {
		useTime = newUseTime;
	}

	public Integer getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(Integer isdelete) {
		this.isdelete = isdelete;
	}

	public Integer getReType() {
		return reType;
	}

	public void setReType(Integer reType) {
		this.reType = reType;
	}

	public Long getUseStkDeId() {
		return useStkDeId;
	}

	public Long getUseStockId() {
		return useStockId;
	}

	public void setUseStkDeId(Long useStkDeId) {
		this.useStkDeId = useStkDeId;
	}

	public void setUseStockId(Long useStockId) {
		this.useStockId = useStockId;
	}

}
